//
//  CLLeftDrawerTableViewController.m
//  CareLink
//
//  Created by apple on 16/8/18.
//  Copyright © 2016年 Seven Team. All rights reserved.
//

#import "CLLeftDrawerTableViewController.h"
#import "CLDrawViewController.h"

@interface CLLeftDrawerTableViewController ()

@end

@implementation CLLeftDrawerTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeContactAdd];
    [self.view addSubview:btn];
    btn.frame = CGRectMake(50, 50, 20, 20);
    [btn addTarget:self action:@selector(push) forControlEvents:UIControlEventTouchUpInside];
    
    
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
- (void)push
{
    NSLog(@"111");
    UIViewController *vc = [[UIViewController alloc]init];
    vc.view.backgroundColor = [UIColor greenColor];
    CLDrawViewController *drawViewController = (CLDrawViewController*)self.parentViewController;
    [drawViewController closeDrawerAnimated:YES completion:^(BOOL finished) {
    }];
    UINavigationController *nav = (UINavigationController*)drawViewController.centerViewController;
    [nav pushViewController:vc animated:NO];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}





@end
